<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
<ui:composition template="/layout.xhtml">
	<ui:define name="corpo">
		<h:form>
			<p:toolbar>
				<p:toolbarGroup align="left">
					<h:commandButton id="btnPopula" actionListener="#{populaMB.popula}"
						value="POPULA Córnea" />
					<h:commandButton id="btnPopulaR"
						actionListener="#{populaMB.populaR}" value="POPULA Receptor" />
				</p:toolbarGroup>
			</p:toolbar>
			<p:panel>
				<p:panelGrid columns="2" columnClasses="labelFields, dataFields">
					<f:facet name="header">
						Atributo para Receptor e Doador
					</f:facet>

					<h:outputText value="Tipo Sanguíneo" />
					<p:inputText id="tpSang" value="#{populaMB.tipoSang}" />
				</p:panelGrid>

				<h:panelGrid columns="2">
					<p:panelGrid columns="2" columnClasses="labelFields, dataFields">
						<f:facet name="header">
							Doador
						</f:facet>

						<h:outputText value="Data Retirada: " />
						<p:calendar value="#{populaMB.dtRet.time}" required="true" />
						<h:outputText value="Data Internação: " />
						<p:calendar value="#{populaMB.dtInt.time}" required="true" />
						<h:outputText value="Data Nascimento Doador: " />
						<p:calendar value="#{populaMB.dtNasD.time}" required="true" />
					</p:panelGrid>

					<p:panelGrid columns="2" columnClasses="labelFields, dataFields">
						<f:facet name="header">
							Receptor
						</f:facet>

						<h:outputText value="Data Inscrição: " />
						<p:calendar value="#{populaMB.dtInsc.time}" required="true" />
						<h:outputText value="Data Nascimento Receptor: " />
						<p:calendar value="#{populaMB.dtNasR.time}" required="true" />
						<h:outputText value="Diagnóstico" />
						<p:inputText id="diag" value="#{populaMB.diag}" />

					</p:panelGrid>
				</h:panelGrid>

				<p:panelGrid columns="4" columnClasses="labelFields, dataFields">
					<f:facet name="header">
							Córnea
						</f:facet>

					<h:outputText value="Tipo da Córnea" />
					<p:inputText id="tpCor" value="#{populaMB.tipoCornea}" />
					<h:outputText value="Epitélio Integro: " />
					<p:inputText id="eint" value="#{populaMB.aUm}" />
					<h:outputText value="Halo Senil: " />
					<p:inputText id="hse" value="#{populaMB.aDois}" />
					<h:outputText value="Edema Estromal: " />
					<p:inputText id="ees" value="#{populaMB.aTres}" />
					<h:outputText value="Dobras do Descement: " />
					<p:inputText id="ddes" value="#{populaMB.aQuatro}" />
					<h:outputText value="Gutta: " />
					<p:inputText id="gut" value="#{populaMB.aCinco}" />
					<h:outputText value="Densidade Endotelial: " />
					<p:inputText id="den" value="#{populaMB.aSeis}" />
					<h:outputText value="Células / mm2: " />
					<p:inputText id="celm" value="#{populaMB.aSete}" />
					<h:outputText value="Validade da Cornea: " />
					<p:inputText id="vcor" value="#{populaMB.aOito}" />
					<h:outputText value="Resultado: " />
					<p:inputText id="result" value="#{populaMB.result}" />
				</p:panelGrid>
			</p:panel>
		</h:form>
	</ui:define>
</ui:composition>
</html>